<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>My JSP 'info.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="commons/css/common.css" />
		<link rel="stylesheet" type="text/css" href="commons/css/button.css" />
	</head>
	<body>
		<div class="container" align="center">
			<div class='companyWap'>
				<table class='details'>
					<tr>
						<td>
							${employee.name}的个人基本信息如下：
						</td>
					</tr>
				</table>
				<table class='details'>
					<tr>
						<td class='n'>用户账号：</td>
						<td>
							<span class="helpTip">${employee.no}</span>
						</td>
					<!-- </tr>
					<tr> -->
						<td class='n'>用户姓名：</td>
						<td>
							<span class="helpTip">${employee.name}</span>
						</td>
					</tr>
					<tr>
						<td class='n'>年龄：</td>
						<td>
							<span class="helpTip">${employee.age}</span>
						</td>
					<!-- </tr>
					<tr> -->
						<td class='n'>性别：</td>
						<td>
							<span>${employee.sex}</span>
						</td>
					</tr>
					<tr>
						<td class='n'>政治面貌：</td>
						<td>
							<span>${employee.politicalAffiliation}</span>
						</td>
					<!-- </tr>
					<tr> -->
						<td class='n'>身高：</td>
						<td>
							<span>${employee.stature}cm</span>
						</td>
					</tr>	
					<tr>
						<td class='n'>电子邮箱：</td>
						<td>
							<span>${employee.email}</span>
						</td>
					<!-- </tr>
					<tr> -->
						<td class='n'>邮编：</td>
						<td>
							<span>${employee.postcode}</span>
						</td>
					</tr>		
					<tr>
						<td class='n'>部门：</td>
						<td>
							<span>${employee.department.name}</span>
						</td>
					<!-- </tr>
					<tr> -->
						<td class='n'>工作职称：</td>
						<td>
							<span class="helpTip">${employee.job}</span>
						</td>
					</tr>
					<tr>
						<td class='n'>学历：</td>
						<td>
							<span class="helpTip">${employee.degree}</span>
							<a href="/pms/edu_show.action?edu.employee.id=${employee.id}" title="点击查看" style="text-decoration:none;color:gray;border:1px solid gray;">学历详情</a>
						</td>
					<!-- </tr>
					<tr> -->
						<td class='n'>婚姻情况：</td>
						<td>
							<span class="helpTip">${employee.marriage}</span>
						</td>
					</tr>
					<tr>
						<td class='n'>状态：</td>
						<td>
							<span class="helpTip">${employee.status}</span>
						</td>
					<!-- </tr>
					<tr> -->
						<td class='n'>生日：</td>
						<td>
							<span class="helpTip"><fmt:formatDate pattern="yyyy年MM月dd日" value="${employee.birthday}"/></span>
						</td>
					</tr>
					<tr>
						<td class='n'>籍贯：</td>
						<td>
							<span class="helpTip">${employee.nativePlace}</span>
						</td>
					<!-- </tr>
					<tr> -->
						<td class='n'>民族：</td>
						<td>
							<span class="helpTip">${employee.nation}</span>
						</td>
					</tr>
					<tr>
						<td class='n'>身份证号：</td>
						<td>
							<span class="helpTip">${employee.idcard}</span>
						</td>
					<!-- </tr>
					<tr> -->
						<td class='n'>联系电话：</td>
						<td>
							<span class="helpTip">${employee.telephone}</span>
						</td>
					</tr>
					<tr>
						<td class='n'>进公司时间：</td>
						<td>
							<span><fmt:formatDate pattern="yyyy年MM月dd日" value="${employee.workTime}"/></span>
						</td>
					<!-- </tr>
					<tr> -->
						<td class='n'>离开公司时间：</td>
						<td>
							<c:if test="${not empty employee.leaveTime}">
								<span>${employee.leaveTime}</span>
							</c:if>
							<c:if test="${empty employee.leaveTime}">
								<span>-</span>
							</c:if>
						</td>
					</tr>
					<tr>
						<td class='n'>地址：</td>
						<td colspan="3">
							<span class="helpTip">${employee.address}</span>
						</td>
					</tr>					
					<tr >
						<td class='n'>备注：</td>
						<td colspan="3">
							<div style="width:830px;height:80px;">${employee.remark}</div>
						</td>
					</tr>
				</table>
			</div>
			<div style="text-align: center; margin-top: 10px;">
				<a href="/pms/emp!toupdate.action?no=${employee.no}" title="点击修改"><button class="light">修改信息</button></a>
			</div>
		</div>
	</body>
</html>
